<?php

namespace app\api\controller;

use app\admin\model\CouponRecord;
use app\admin\model\Details;
use app\admin\model\Products;
use app\admin\model\Worktags;
use app\api\middleware\RoleCheck;
use app\api\service\OrderService;

use app\common\controller\Api;
use app\common\library\Ems;
use app\common\library\Sms;
use fast\Random;
use think\Config;
use think\Db;
use think\Hook;
use think\Request;
use think\Validate;

/**
 * 富文本介绍
 */
class Article extends Api
{
    protected $noNeedLogin = [''];
    protected $noNeedRight = '*';

    public function _initialize()
    {
        parent::_initialize();
        $this->model= new \app\admin\model\Article;
    }

    /*
     * 富文本内容
     */
    public function article_info()
    {
        if (!$type = input('type')) {
            $this->error('请选择');
        }
        $info = $this->model->where('type','=',$type)->field('content')->find();
        $this->success('', $info);
    }


}
